package com.lehoon.tomato.mapper;

import com.lehoon.tomato.model.Bedroom;
import com.lehoon.tomato.model.Region;
import com.lehoon.tomato.model.School;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lehoon.tomato.model.vo.SchoolVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Mapper
public interface SchoolMapper  {

    List<School> querySchool(SchoolVo schoolVo);

    List<Region> getSchoolRegion(Integer schoolId);

    List<Bedroom> getSchoolBedroom(@Param("schoolId") Integer schoolId,@Param("regionId") Integer regionId);
}
